package com.atlin.project.service;

import com.atlin.project.model.domain.SysOperLog;
import com.atlin.project.model.dto.sysOperLog.SysOperLogQueryRequest;
import com.atlin.project.model.vo.SysOperLogVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * @author atlin
 * @description sysOperLog
 * @createDate date
 */
public interface SysOperLogService extends IService<SysOperLog> {

    void valid(SysOperLog sysOperLog, boolean add);

    /**
     * 获取封装
     *
     * @param sysOperLog
     * @param request
     * @return
     */
    SysOperLogVO getSysOperLogVO(SysOperLog sysOperLog, HttpServletRequest request);


    /**
     * 获取查询条件
     *
     * @param questionQueryRequest
     * @return
     */
    QueryWrapper<SysOperLog> getQueryWrapper(SysOperLogQueryRequest questionQueryRequest);

    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<SysOperLogVO> getSysOperLogVOPage(Page<SysOperLog> questionPage, HttpServletRequest request);
}
